Skip to main content

AlertDismissable

The AlertDismissable component is a simple React component that displays a dismissable alert message. It is built using Bootstrap CSS classes for styling.

Usage

Interactive playgrounds load on the client. Refresh in a browser to edit this lesson.

Props

PropTypeDescription
showbooleanControls the visibility of the alert.
titlestringThe title of the alert message.
childrenReact.ReactNodeThe content to be displayed within the alert.

Example

This is how the AlertDismissable component would be used in a React application.

Interactive playgrounds load on the client. Refresh in a browser to edit this lesson.